package com.youlai.sale.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

/**
 * 销售产品预测类型表(bee_sale_item_forecast_type)实体类
 *
 * @author xiamw
 * @since 2024-01-25 19:37:25
 * @description 由 Mybatisplus Code Generator 创建
 */
@NoArgsConstructor
@Schema(description ="销售-销售产品预测类型信息")
@Data
@Entity
@EntityListeners(AuditingEntityListener.class)
@Table(name = "bee_sale_item_forecast_type", schema = "youlai_boot", catalog = "")
public class SaleItemForecastTypeEntity implements Serializable {
    @Transient
    private static final long serialVersionUID = 1L;

    @Schema(description ="主键ID")
    @Id
    @Column(name = "sale_item_fc_type_id", unique = true)
	private Long saleItemFcTypeId;
    /**
     * 货号 LPK
     */
    private String itemNo;
    /**
     * 销售货号
     */
    private String sitem;
    /**
     * 预测类型
     */
    private String ft;

    @Schema(description ="排序")
    private Integer sort;

    @Schema(description ="状态(1:正常;0:禁用)")
    private Integer status=1;

    @Schema(description ="备注")
    private String remark;

    @Schema(description ="逻辑删除标识(0:未删除;1:已删除)")
    private Integer deleted=0;

    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @CreatedDate
    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;
    private Long createBy;
    private String createName;

    private Long updateBy;
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @LastModifiedDate
    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;
    private String updateName;
}